# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'

workspace 'MT.xcworkspace'
project   'MT.xcodeproj'

target 'MT' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MT
  pod 'RxSwift'             # 函数式库
  pod 'RxCocoa'             # cocoa扩展
  pod 'Moya/RxSwift'        # rxw化的网络库
  pod 'RxDataSources'       # 数据源
  pod 'Kingfisher'          # 图片库
  pod 'SnapKit'             # 布局库
  pod 'ObjectMapper'        # 字典模型转换
#  #   #  pod 'SwiftyBeaver'        # 日志记录系统
#  #   pod 'Reusable'            # 视图重用库
  pod 'Result'              # 回调block
  pod 'NSObject+Rx'         # 便捷实用RXSwift
  pod 'MJRefresh'           # 刷新库
  pod 'MBProgressHUD'       # HUD
  pod 'Then'                # 一些语法糖
  pod 'AutoInch'
  pod 'SwiftyRSA'
  pod 'DeviceKit'
  pod 'YPNavigationBarTransition'
  pod 'Eureka'
  #pod 'YYText', '~> 1.0.7'
  pod 'YYKit'
  #pod 'JXPhotoBrowser'
  pod 'DZNEmptyDataSet'
  pod 'libOpenInstallSDK'
  pod 'RollingNotice-Swift'

  # Jpush
  pod 'JMessage'
  pod 'JPush'

  # 友盟
  pod 'UMCCommon'
  pod 'UMCSecurityPlugins'
  pod 'UMCAnalytics'
  pod 'UMCShare/Social/ReducedWeChat'
  pod 'WechatOpenSDK'
  
  pod 'FMDB'
  pod 'YHPopupView'
  pod 'YHPhotoKit'
  pod 'Masonry'

  # 播放器
  pod 'ZFPlayer'
  pod 'ZFPlayer/ControlView'
  pod 'ZFPlayer/AVPlayer'

  # 分页
  pod 'JXCategoryView', '1.4.0'
  pod 'JXPagingView/Paging', '2.0.5'
  pod 'JXSegmentedView'
  pod 'GrowingTextView'
  pod 'CWLateralSlide'
  # 键盘
  pod 'IQKeyboardManagerSwift'
  pod 'SwiftyStoreKit'
  # 视频缓存框架
  pod 'KTVHTTPCache'

  target 'MTTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'MTUITests' do
    # Pods for testing
  end

end

target 'MTCategory' do
  
  project 'MTCategory/MTCategory.xcodeproj'
  
  use_frameworks!
  pod 'RxSwift'             # 函数式库
  pod 'RxCocoa'             # cocoa扩展
  pod 'Moya/RxSwift'        # rxw化的网络库
  pod 'ObjectMapper'        # 字典模型转换
  pod 'NSObject+Rx'         # 便捷实用RXSwift
  pod 'MJRefresh'           # 刷新库
  pod 'MBProgressHUD'       # HUD
  pod 'Then'                # 一些语法糖
  pod 'Result'              # 回调block
  pod 'SwiftyRSA'
  pod 'DeviceKit'
  pod 'SnapKit'             # 布局库
  pod 'DZNEmptyDataSet'
  pod 'AutoInch'
  
end

#swift_4_2_pod_targets = ['SnapKit', 'Moya', 'Then', 'AutoInch', 'SwiftyRSA']
#
#post_install do | installer |
#  installer.pods_project.targets.each do |target|
#    if swift_4_2_pod_targets.include?(target.name)
#      target.build_configurations.each do |config|
#        config.build_settings['SWIFT_VERSION'] = '4.2'
#      end
#    end
#  end
#end
